/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.elka.gis.main.helper;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import pl.elka.gis.main.node.Node;

/**
 *
 * @author Marcin
 */
public class NodesHelper {
    public static Set<Node> getAllNodes(Set<String> nodesNames) {
        Set<Node> nodes = new HashSet<Node>();
        Iterator<String> i = nodesNames.iterator();
        while(i.hasNext()) {
            nodes.add(new Node(i.next(), 0, 0));
        }
        return nodes;
    }
}
